package com.zxq.uart.controller;

import com.zxq.uart.frame.decoder._0CQueryConsumerResult;
import com.zxq.uart.frame.encoder._0CQueryConsumerCmd;
import com.zxq.uart.result.ResultVO;
import com.zxq.uart.service.impl.PlatformExchange;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class _0CQueryConsumerController extends PlatformExchange<_0CQueryConsumerCmd, _0CQueryConsumerResult> {


    @Override
    public Integer getCmd() {
        return 0X0C;
    }

    @PostMapping("exchange/0C")
    @Override
    public ResultVO<_0CQueryConsumerResult> exchange(@RequestBody _0CQueryConsumerCmd order) {
        return super.exchange(order);
    }

    @Override
    public _0CQueryConsumerResult getResult() {
        return new _0CQueryConsumerResult();
    }

}
